package com.liyiwei.redislock.controller;

import com.liyiwei.redislock.service.IShopService;
import com.liyiwei.redislock.service.RedisRLockImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController
public class RedisLockController {



    @Autowired
    private IShopService shopService;

    @GetMapping("/test")
    public void testLock(){
        shopService.cutDown();
    }
}
